import  {post,get,put} from "../model/requst.js"

export  const  userRegister = (data)=>{
	return  post("/prod-api/api/register",data)
}

export  const  userLogin = (data)=>{
	return  post("/prod-api/api/login",data)
}
export  const userQuery = ()=>{
	return get("/prod-api/api/common/user/getInfo",{},{
		"Authorization":uni.getStorageSync("token")
	})
}
export const  updateUser= (data)=>{
	return  put("/prod-api/api/common/user",data,{
		"Authorization":uni.getStorageSync("token")
	})
}